#ifndef MYTHREAD_H
#define MYTHREAD_H


#include <QThread>
#include <QDir>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class MyThread : public QThread
{
public:
    explicit MyThread(QObject *parent = nullptr);
    ~MyThread();

    void setUi(Ui::Widget *ui);

protected:
    void run();

private:
    Ui::Widget *ui;
    QDir dir;
    QStringList list;
};

#endif // MYTHREAD_H
